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C,EAAA,EAACsB,EAAAA,EAAMA,CAAAA,CACLH,IAAK,EACLK,SAAS,SACTuH,OAAO,WACP1I,MAAM,OACN2C,WAAW,MACXmF,eAAe,0BAEf,GAAApI,EAAAE,EAAA,EAACgD,EAAAA,EAAGA,CAAAA,UACF,GAAAlD,EAAAE,EAAA,EAACqN,EAASA,CAAC3C,MAAOuF,EAAKvF,KAAK,KAE9B,GAAA5K,EAAAE,EAAA,EAACgD,EAAAA,EAAGA,CAAAA,CAACnD,UAAU,oCACZqJ,IAAM+G,EAAK9G,UAAU,EAAEC,MAAM,CAAC,yBAKvCgG,MAAOA,MAKjB,EAEMS,EAAW,GACfvO,CAAAA,EAAAA,EAAAA,EAAAA,EAAI,CACF2G,QAAS,cACTiI,aAAc,WACd1E,WAAY,WACZjK,SAAU,SACV4O,gBAAiB,EACjBC,gBAAiB,UACnB,qBE3JFC,EARA,SAAkB5Q,CAA2B,CAAE,IAA7B,CAAEsG,OAAAA,CAAAA,CAAQuK,SAAAA,CAAAA,CAAiB,CAA3B7Q,SAChB,EACS,GAAAK,EAAAE,EAAA,EAACuQ,EAAAA,OAAYA,CAAAA,CAAAA,GAGf,GAAAzQ,EAAAE,EAAA,EAACoO,EAAsBA,CAACrI,OAAQA,GAFtC,AAGH","sources":["webpack://_N_E/?c701","webpack://_N_E/./components/common/Error.tsx","webpack://_N_E/./pages/404.tsx","webpack://_N_E/./components/Reviews/ReviewItems/AverageStarring.tsx","webpack://_N_E/./components/Reviews/ReviewItems/RecommendationTagLabe.tsx","webpack://_N_E/./containers/ReviewContainer/constants/reviewTags.ts","webpack://_N_E/./containers/ReviewContainer/hooks/useReviewPageRouter.tsx","webpack://_N_E/./containers/ReviewContainer/components/ReviewTag/ReviewTagChip.tsx","webpack://_N_E/./utils/parseReviewAverageScore.ts","webpack://_N_E/./atoms/funeralReviewState.ts","webpack://_N_E/./hooks/useDialog.ts","webpack://_N_E/./apis/sangjoReview.ts","webpack://_N_E/./components/Reviews/ReviewItems/ReviewEditDropDown.tsx","webpack://_N_E/./components/Reviews/ReviewItems/CustomerReview.tsx","webpack://_N_E/./containers/ReviewContainer/components/SangjoServiceIntroduction.tsx","webpack://_N_E/./hooks/usePaginationRouter.ts","webpack://_N_E/./containers/ReviewContainer/remotes/getReviews.ts","webpack://_N_E/./containers/ReviewContainer/hooks/useReviewListInDetailPage.ts","webpack://_N_E/./containers/MatchContainer/components/MatchRecommendations/StarScore.tsx","webpack://_N_E/./components/common/PrepaidBanners.tsx","webpack://_N_E/./containers/ReviewContainer/FuneralReviewContainer.tsx","webpack://_N_E/./containers/ReviewContainer/index.tsx","webpack://_N_E/./pages/review/[id].tsx","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/review/[id]\",\n function () {\n return require(\"private-next-pages/review/[id].tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/review/[id]\"])\n });\n }\n ","import styled from \"@emotion/styled\";\nimport { ReactNode } from \"react\";\n\nimport { Icon, NextLink, LargeButton, LARGEL_BUTTON_TYPE } from \"goi_common\";\n\ninterface ErrorProps {\n children: ReactNode;\n buttonText?: string;\n buttonHref?: string;\n className?: string;\n}\n\nfunction Error({ children, buttonText, buttonHref, className }: ErrorProps) {\n return (\n \n \n {children}\n {buttonHref && buttonText && (\n \n \n {buttonText}\n \n \n )}\n \n );\n}\n\nconst ErrorRoot = styled.div`\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n padding: 60px 20px 80px;\n background: var(--gray50);\n`;\n\nconst FullWidthNextLink = styled(NextLink)`\n width: 100%;\n`;\n\nexport default Error;\n","import styled from \"@emotion/styled\";\nimport Error from \"@/components/common/Error\";\nimport { HEADER_HEIGHT } from \"@/constants/components\";\n\nfunction NotFoundPage() {\n return (\n \n
죄송합니다
\n
\n 찾을 수 없는 페이지를 요청하셨습니다.\n
\n 요청하신 페이지의 주소가 변경, 삭제되어\n
\n 찾을 수 없습니다.\n
\n
\n );\n}\n\nconst FullHeightError = styled(Error)`\n min-height: calc(var(--vh) * 100 - ${HEADER_HEIGHT}px);\n\n .title {\n padding-top: 32px;\n }\n\n .body2 {\n padding: 8px 0 80px;\n text-align: center;\n }\n`;\n\nexport default NotFoundPage;\n","import { colors, HStack, ColorIcon, VStack } from \"goi_common\";\n\ninterface StarringProps {\n star: number;\n size: number;\n gap?: number | string;\n}\n\nconst AverageStarring = ({ star, size, gap }: StarringProps) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default AverageStarring;\n","import { Box } from \"@chakra-ui/react\";\nimport { colors, HStack } from \"goi_common\";\nimport { useEffect, useState } from \"react\";\nimport { ReviewSummaryTitle } from \"../../../types/reviewType\";\n\nconst 전문적인진행TagList = [\n {\n icon: \"📝\",\n description: \"전문적이고 꼼꼼하게 진행해주셨어요\",\n },\n {\n icon: \"📝\",\n description: \"무난하게 진행해주셨어요\",\n },\n {\n icon: \"📝\",\n description: \"진행에 아쉬운 점이 있었어요\",\n },\n];\n\nconst 진정성TagList = [\n {\n icon: \"❤️\",\n description: \"정성스럽고 따뜻하게 대해주셨어요\",\n },\n {\n icon: \"❤️\",\n description: \"불편함 없이 대해주셨어요\",\n },\n {\n icon: \"❤️\",\n description: \"불친절하고 사무적이었어요\",\n },\n];\n\nconst 가격만족도TagList = [\n {\n icon: \"💰\",\n description: \"가격 대비 만족해요\",\n },\n {\n icon: \"💰\",\n description: \"가격 대비 만족도가 보통이에요\",\n },\n {\n icon: \"💰\",\n description: \"가격 대비 불만족스러워요\",\n },\n];\n\nconst 추가금TagList = [\n {\n icon: \"💸\",\n description: \"추가금이 합리적이었어요\",\n },\n {\n icon: \"💸\",\n description: \"추가금을 낼 만했어요\",\n },\n {\n icon: \"💸\",\n description: \"추가금이 불편했어요\",\n },\n {\n icon: \"X\",\n description: \"추가금이 없었어요\",\n },\n];\n\nconst tagList = {\n \"전문적인 진행\": 전문적인진행TagList,\n 진정성: 진정성TagList,\n \"가격 만족도\": 가격만족도TagList,\n 추가금: 추가금TagList,\n};\n\nfunction RecommendationIconTagLabel({\n tagTitle,\n tag,\n}: {\n tagTitle: ReviewSummaryTitle;\n tag: number;\n}) {\n const indexParseSentense = (title: ReviewSummaryTitle, index: number) => {\n const arr = tagList[title];\n return arr[index];\n };\n\n const [tagObj, setTagObj] = useState({ icon: \"\", description: \"\" });\n\n useEffect(() => {\n setTagObj(indexParseSentense(tagTitle, tag));\n }, [tagTitle, tag]);\n\n return (\n \n {tagObj.icon}\n {tagObj.description}\n \n );\n}\n\nexport default RecommendationIconTagLabel;\n","import type { SangjoReviewTag } from \"@/types/reviewType\";\n\nexport const SANGJO_REVIEW_TAGS: SangjoReviewTag[] = [\n \"장례지도사\",\n \"상담\",\n \"상황\",\n \"정책\",\n];\n\nexport const SANGJO_REVIEW_DETAIL_TEXT = {\n 장례지도사: \"믿고 맡길 수 있는 장례지도사\",\n 상담: \"친절하고 자세한 상담\",\n 상황: \"막막한 상황\",\n 정책: \"합리적이고 투명한 정책\",\n} as {\n [key: string]: string;\n};\n\nexport const SANGJO_REVIEW_SUB_TEXT = {\n 장례지도사: \" 를 경험하신 후기\",\n 상담: \" 부터 함께 하신 고객님들의 후기\",\n 상황: \" 도움을 받으신 고객님들의 후기\",\n 정책: \" 에 만족하신 고객님들의 후기\",\n} as {\n [key: string]: string;\n};\n","import { useRouter } from \"next/router\";\n\nimport type { SangjoReviewTag } from \"@/types/reviewType\";\n\nexport const useReviewPageRouter = () => {\n const router = useRouter();\n const { page, tag } = router.query as {\n page?: string;\n tag?: SangjoReviewTag extends SangjoReviewTag ? SangjoReviewTag : string;\n };\n\n const setReviewPageNum = (newPage: number) => {\n const nextRouter = { ...router };\n /** 나머지 쿼리들은 그대로 가져감 page만 변경 */\n nextRouter.query.page = newPage.toString();\n router.push(nextRouter);\n };\n\n const getReviewTagPageHref = (tagName?: string) => {\n return tagName ? `/review/tag/${tagName}` : \"/review\";\n };\n\n return {\n router,\n page,\n tag,\n getReviewTagPageHref,\n setReviewPageNum,\n };\n};\n","import { Interpolation, Theme } from \"@emotion/react\";\nimport { Chip, colors } from \"goi_common\";\nimport { SANGJO_REVIEW_DETAIL_TEXT } from \"../../constants/reviewTags\";\nimport { useReviewPageRouter } from \"../../hooks/useReviewPageRouter\";\n\ninterface TagChipProps {\n tag: string;\n colorType?: \"highlight\" | \"normal\";\n}\n\nexport const ReviewTagChip = ({ tag, colorType = \"normal\" }: TagChipProps) => {\n const { tag: tagQueryParams } = useReviewPageRouter();\n\n const colorPalatte = {\n normal: {\n 장례지도사: {\n color: colors.orange650,\n backgroundColor: colors.orange100,\n },\n 상담: {\n color: colors.blue600,\n backgroundColor: colors.blue100,\n },\n 정책: {\n color: colors.green500,\n backgroundColor: colors.green50,\n },\n 상황: {\n color: colors.warmGray700,\n backgroundColor: colors.warmGray100,\n },\n 기본값: {\n color: colors.warmGray100,\n backgroundColor: colors.gray800,\n },\n },\n highlight: {\n 장례지도사: {\n color: colors.orange700,\n backgroundColor: colors.orange100,\n },\n 상담: {\n color: colors.blue700,\n backgroundColor: colors.blue100,\n },\n 정책: {\n color: colors.green500,\n backgroundColor: colors.green50,\n },\n 상황: {\n color: colors.brown500,\n backgroundColor: colors.warmGray200,\n },\n 기본값: {\n color: colors.warmGray100,\n backgroundColor: colors.gray800,\n },\n },\n };\n\n const showColor = colorPalatte[colorType];\n\n const goiSangjoReviewTags = {\n 장례지도사: {\n text: SANGJO_REVIEW_DETAIL_TEXT.장례지도사,\n ...showColor.장례지도사,\n },\n 상담: {\n text: SANGJO_REVIEW_DETAIL_TEXT.상담,\n ...showColor.상담,\n },\n 정책: {\n text: SANGJO_REVIEW_DETAIL_TEXT.정책,\n ...showColor.정책,\n },\n 상황: {\n text: SANGJO_REVIEW_DETAIL_TEXT.상황,\n ...showColor.상황,\n },\n 기본값: {\n color: colors.warmGray100,\n backgroundColor: colors.gray800,\n text: \"\",\n },\n } as {\n [key: string]: {\n color: string;\n backgroundColor: string;\n text: string;\n };\n };\n\n const detail = goiSangjoReviewTags[tag] || goiSangjoReviewTags.기본값;\n const isActived = tagQueryParams === tag;\n\n const text = detail?.text ? `# ${detail.text}` : \"\";\n const backgroundColor = isActived ? detail.backgroundColor : \"transparent\";\n const css: Interpolation = {\n \":hover\": {\n cursor: \"default\",\n },\n };\n\n return detail.text ? (\n {}}\n />\n ) : (\n <>\n );\n};\n","export function parseReviewAverageScore(average_score: number) {\n const score = average_score ? String(average_score).padEnd(3, \".0\") : \"-\";\n return score;\n}\n","import { Review } from \"@/types/reviewType\";\nimport { atom } from \"recoil\";\n\nexport const reviewTagsState = atom>({\n default: [],\n key: \"reviewTags\",\n});\n\nexport const reviewContentState = atom({\n default: \"\",\n key: \"reviewContent\",\n});\n\nexport const reviewBadContentState = atom({\n default: \"\",\n key: \"badreviewContent\",\n});\n\nexport const reviewStarsState = atom({\n default: 0,\n key: \"reviewStars\",\n});\n\nexport const processTagsState = atom({\n default: -1,\n key: \"processTags\",\n});\n\nexport const sincerityTagsState = atom({\n default: -1,\n key: \"sincerityTags\",\n});\n\nexport const priceTagsState = atom({\n default: -1,\n key: \"priceTags\",\n});\n\nexport const additionalTagsState = atom({\n default: -1,\n key: \"additionalTags\",\n});\n\nexport const editingFuneralReviewState = atom({\n default: undefined,\n key: \"editingFuneralDirectorReview\",\n});\n\nexport const orderByState = atom({\n key: \"orderByState\",\n default: \"-created_at\",\n});\n","import { DialogProps, dialogPropsState } from \"../atoms/dialogState\";\nimport { useCallback } from \"react\";\nimport { useResetRecoilState, useSetRecoilState } from \"recoil\";\n\nexport function useDialog() {\n const setProps = useSetRecoilState(dialogPropsState);\n const resetProps = useResetRecoilState(dialogPropsState);\n\n const onOpen = useCallback((p: DialogProps) => setProps(p), [setProps]);\n const onClose = useCallback(() => resetProps(), [resetProps]);\n\n return { onOpen, onClose };\n}\n","import { Review, ReviewCreateUpdate } from \"@/types/reviewType\";\nimport { Axios } from \"@/utils/axios\";\n\nexport const getSangjoReviewDetail = async (id: string) => {\n const { data } = await Axios.get(`/sangjo_reviews/${id}/`);\n return data;\n};\n\nexport const getSangjoReview = async (id: string, orderby: string) => {\n const { data } = await Axios.get(\n `/sangjos/${id}/reviews?order_by=${orderby}`\n );\n return data;\n};\n\nexport const postSangjoReview = async (body: ReviewCreateUpdate) => {\n const response = await Axios.post(`/sangjo_reviews/`, body);\n return response;\n};\n\nexport const putSangjoReview = async ({\n id,\n body,\n}: {\n id?: number;\n body: ReviewCreateUpdate;\n}) => {\n const response = await Axios.put(`/sangjo_reviews/${id}/`, body);\n return response;\n};\n\nexport const deleteSangjoReview = (id: number) => {\n return Axios.delete(`/sangjo_reviews/${id}/`);\n};\n\n// 분리\nexport const getSangjoFuneralDirector = async (id: string) => {\n const { data } = await Axios.get(`/sangjos/${id}/funeral_directors/`);\n return data;\n};\n","import { editingFuneralReviewState } from \"@/atoms/funeralReviewState\";\nimport { useDialog } from \"@/hooks/useDialog\";\nimport {\n Menu,\n MenuButton,\n MenuDivider,\n MenuItem,\n MenuList,\n} from \"@chakra-ui/react\";\nimport { ColorIcon, colors } from \"goi_common\";\nimport { useRouter } from \"next/router\";\nimport { useQueryClient } from \"react-query\";\nimport { useSetRecoilState } from \"recoil\";\n\nimport { Review } from \"@/types/reviewType\";\nimport { deleteSangjoReview } from \"@/apis/sangjoReview\";\n\nexport default function ReviewEditDropdown({ review }: { review: Review }) {\n const queryClient = useQueryClient();\n const setEditingReview = useSetRecoilState(editingFuneralReviewState);\n const router = useRouter();\n\n const { onOpen, onClose } = useDialog();\n\n const deleteCheck = () => {\n onOpen({\n type: 1,\n header: \"정말 삭제하시겠어요?\",\n footerProps: [\n {\n text: \"아니오\",\n onClick: onClose,\n },\n {\n text: \"예\",\n onClick: deleteReview,\n },\n ],\n children: (\n <>\n 삭제된 후기는
복구되지 않습니다.\n \n ),\n });\n };\n\n const deleteReview = async () => {\n await deleteSangjoReview(Number(router.query.id));\n await queryClient.invalidateQueries(\"sangjoReview\");\n onClose();\n router.replace(\"/review\");\n };\n\n const onClickEdit = (review: Review) => {\n setEditingReview(review);\n\n router.push({\n pathname: `/funeral/${review.sangjo.name}/review/edit`,\n query: {\n reviewId: router.query.id,\n },\n });\n };\n\n return (\n <>\n \n \n \n \n \n onClickEdit(review)}\n >\n 수정하기 \n \n \n \n 삭제하기{\" \"}\n \n \n \n \n \n );\n}\n","import { Box, Flex } from \"@chakra-ui/react\";\nimport {\n CircleImage,\n colors,\n customEvent,\n HLine,\n HStack,\n NextLink,\n VStack,\n} from \"goi_common\";\n\nimport dayjs from \"dayjs\";\n\nimport Starring from \"./AverageStarring\";\nimport RecommendationTagLabel from \"./RecommendationTagLabe\";\n\nimport { ReviewTagChip } from \"@/containers/ReviewContainer/components/ReviewTag/ReviewTagChip\";\nimport { parseReviewAverageScore } from \"@/utils/parseReviewAverageScore\";\nimport { useRouter } from \"next/router\";\nimport { Review } from \"../../../types/reviewType\";\nimport ReviewEditDropdown from \"./ReviewEditDropDown\";\nimport { SANGJO_REVIEW_TAGS } from \"@/containers/ReviewContainer/constants/reviewTags\";\n\ninterface CustomerReviewProps {\n review: Review;\n isClickAvailable?: boolean;\n hasLine?: boolean;\n}\n\nexport const CustomerReview = ({\n review,\n isClickAvailable = true,\n hasLine = true,\n}: CustomerReviewProps) => {\n const router = useRouter();\n const tags = review.tags?.filter((t) => SANGJO_REVIEW_TAGS.includes(t));\n\n return (\n \n \n \n \n \n {review.user.nickname}\n \n \n {review.user.age_and_gender || \"비공개\"}\n {\" | \"}\n {dayjs(review.created_at).format(\"YYYY년 M월 D일\")}\n \n \n {review.is_users && }\n \n\n {\n if (router.asPath.startsWith(\"/funeral\")) {\n customEvent({\n newGtm: {\n path: \"funeral_detail\",\n trigger_and_target: \"review_detail-uv_review_detail\",\n },\n });\n } else if (router.asPath.startsWith(\"/review\")) {\n customEvent({\n newGtm: {\n path: \"review\",\n trigger_and_target: \"review-uv_review_detail\",\n },\n });\n customEvent({\n newGtm: {\n path: \"review\",\n trigger_and_target: \"active_clicks\",\n },\n });\n }\n }}\n >\n \n \n

{review.headline}

\n
\n\n \n {tags &&\n tags.map((tag) => )}\n \n \n\n {review.bad && (\n \n )}\n
\n \n\n \n \n \n {parseReviewAverageScore(review.score)}\n \n \n \n \n \n \n \n \n \n {review.additional_charge === 3 || (\n \n )}\n \n \n {hasLine && }\n \n );\n};\n\nfunction ReviewContent({ title, content }: { title: string; content: string }) {\n return (\n \n {title}\n \n \n );\n}\n","import { css } from \"@emotion/react\";\nimport {\n colors,\n HStack,\n CircleImage,\n VStack,\n getCdnImageSrc,\n} from \"goi_common\";\n\nexport function SangjoServiceIntroduction({\n sangjo,\n funeral,\n funeral_director,\n}: any) {\n return (\n \n {}}\n >\n \n

{funeral_director.name} 장례지도사

\n

{funeral_director.quote}

\n
\n \n \n \n \n\n {funeral?.parlor && (\n \n \n
{funeral.parlor.companyname}
\n
\n {funeral.parlor.address}\n {funeral.parlor.binso_average_charge && (\n <>\n
\n \n 빈소 평균비용{\" \"}\n {Math.floor(funeral.parlor.binso_average_charge / 10000)}\n 만원\n \n \n )}\n
\n
\n {funeral.parlor.images[0] && (\n \n )}\n \n )}\n {funeral?.charge && (\n \n \n
장례 비용
\n
{funeral.charge}만원
\n
\n
\n 장례 방식 및 가격은 세부 항목에 따라 달라질 수 있습니다.\n
\n
\n )}\n {funeral?.sangjo_type && (\n \n \n 상조 서비스\n \n

{funeral.sangjo_type}

\n \n )}\n {funeral?.crematorium && (\n \n \n 1차 장지(화장 시설)\n \n
{funeral.crematorium}
\n \n )}\n {funeral?.jangji_site && (\n \n \n 2차 장지(안치 시설)\n \n \n {funeral.jangji_site}-{funeral.jangji_type}\n \n \n )}\n \n );\n}\n\nconst rowCss = css`\n background-color: white;\n padding: 16px 20px;\n`;\nconst titleClassName = \"button gray900\";\n","import { useRouter } from \"next/router\";\n\nexport function usePaginationRouter() {\n const router = useRouter();\n const { page } = router.query as { page?: string };\n const setPage = (newPage: number) => {\n router.query.page = newPage.toString();\n router.push(router);\n };\n\n return {\n router,\n page: page ? Number(page) : 1,\n setPage,\n };\n}\n","import { CursorPaginationResult } from \"@/types/CursorPaginationResult\";\nimport { SangjoReviewTag } from \"@/types/reviewType\";\nimport { Axios } from \"@/utils/axios\";\n\nexport interface Review {\n id: number;\n funeral_director: {\n id: number;\n name: string;\n };\n headline: string;\n content: string;\n good?: string;\n score: number;\n created_at: string;\n sangjo_type: string;\n parlor: string;\n charge: number | null;\n user: {\n age_and_gender: string;\n nickname: string;\n picture?: string;\n };\n isCurrent?: boolean;\n}\n\ninterface NewReview {\n id: number;\n sangjos: {\n id: number;\n name: string;\n };\n headline: string;\n good: string;\n bad?: string;\n process: number;\n sincerity: number;\n price: number;\n additional_charge: number;\n score: number;\n created_at: string;\n sangjo_type: string;\n parlor: string;\n charge: number | null;\n user: {\n age_and_gender: string;\n nickname: string;\n picture?: string;\n };\n isCurrent?: boolean;\n tags?: SangjoReviewTag[];\n funeral_director?: string;\n district?: string;\n}\n\nexport const getReviews = (\n params: { sangjo?: number[]; service_type?: string[] } = {}\n) => {\n const sangjo = params.sangjo ? params.sangjo.join(\",\") : undefined;\n const service_type = params.service_type\n ? params.service_type.join(\",\")\n : undefined;\n\n return async ({ pageParam = \"\" }) => {\n const page = pageParam ? new URL(pageParam).searchParams.get(\"page\") : 1;\n\n const { data } = await Axios.get>(\n \"/sangjo_reviews\",\n {\n params: {\n sangjo,\n service_type,\n page,\n },\n }\n );\n return data;\n };\n};\n\nexport const getPaginationReviews = async (page: number, tag?: string) => {\n const { data } = await Axios.get>(\n `/sangjo_reviews`,\n {\n params: {\n page,\n tag,\n },\n }\n );\n return data;\n};\n\nexport const getBestReviews = async () => {\n const { data } = await Axios.get>(\n `/sangjo_reviews/?is_best_review=True`\n );\n return data;\n};\n","import { useQuery } from \"react-query\";\nimport { usePaginationRouter } from \"@/hooks/usePaginationRouter\";\nimport { getPaginationReviews } from \"../remotes/getReviews\";\n\ninterface IUseReviewListOptions {\n tag?: string;\n onlyUseThisPageNum?: number;\n}\n\nexport function useReviewListInDetailPage(params?: IUseReviewListOptions) {\n const { page, setPage } = usePaginationRouter();\n const pageArgument = params?.onlyUseThisPageNum || page;\n\n const {\n data: reviews,\n refetch,\n isLoading,\n } = useQuery([\"reviews\", page], () =>\n getPaginationReviews(pageArgument, params?.tag)\n );\n\n let count;\n if (reviews) {\n count = reviews.count;\n }\n\n return {\n reviews,\n count,\n page,\n setPage,\n refetch,\n isLoading,\n };\n}\n","import { ColorIcon, colors, HStack } from \"goi_common\";\n\nexport const StarScore = ({ score }: { score?: number }) => {\n return (\n \n \n
\n {score && score >= 0 ? score.toFixed(1) : \"-\"}\n
\n
\n );\n};\n","import { Box, Flex } from \"@chakra-ui/react\";\nimport {\n call,\n ColorIcon,\n colors,\n customEvent,\n HStack,\n useResponsive,\n VStack,\n EventPathType,\n} from \"goi_common\";\n\nimport { useRouter } from \"next/router\";\nimport { useMemo } from \"react\";\n\nconst PrepaidBanners = ({\n eventPath = \"review\",\n isMobile,\n title = \"미리 준비하기\",\n extra,\n}: {\n eventPath: keyof typeof EventPathType;\n isMobile?: boolean;\n title?: string;\n extra?: string;\n}) => {\n const router = useRouter();\n const { isBiggerThanMd: breakpoint } = useResponsive();\n const isBiggerThanMd = useMemo(() => {\n return !breakpoint && !isMobile;\n }, [isMobile, breakpoint]);\n return (\n \n \n \n [{title}]\n \n \n 미리 알아보려고 하신다면\n
월 납입금 부담이 적은 100원 상조부터,\n
\n 한번 납입으로 큰 혜택을 보장받을 수 있는 프리미엄 멤버십까지.\n {extra && (\n \n
\n {extra}\n
\n )}\n \n {\n customEvent({\n newGtm: {\n path: eventPath,\n trigger_and_target: \"pbanner-call\",\n },\n });\n call(\"1666-9784\");\n }}\n >\n 문의하기\n \n {\n customEvent({\n newGtm: {\n path: eventPath,\n trigger_and_target: \"pbanner-uv_match_request\",\n },\n });\n router.push(`/match/request/?utm_campaign=rv_tp`);\n }}\n >\n 맞춤형 패키지 추천받기\n \n \n \n \n \n {\n customEvent({\n newGtm: {\n path: eventPath,\n trigger_and_target: \"pbanner-b1_prime\",\n },\n });\n router.push(\n `https://prime.goifuneral.co.kr/?utm_campaign=goi_rv_b1_100`\n );\n }}\n css={{ cursor: \"pointer\" }}\n width=\"100%\"\n padding=\"12px 16px\"\n borderRadius=\"6px\"\n background=\"white\"\n boxShadow=\"0px 0px 12px 2px rgba(0, 0, 0, 0.1)\"\n >\n \n \n
\n 매 월 납입금이 부담일때, 올해 가격을 10년 후에도 보장받고자\n 한다면\n
\n \n
\n \n 매월 100원, 장례 발생시 차액 지불\n \n
\n \n {\n customEvent({\n newGtm: {\n path: eventPath,\n trigger_and_target: \"pbanner-b2_prime\",\n },\n });\n router.push(\n `https://prime.goifuneral.co.kr/main/9900/?utm_campaign=goi_rv_b2_9900`\n );\n }}\n css={{ cursor: \"pointer\" }}\n width=\"100%\"\n padding=\"12px 16px\"\n borderRadius=\"4px\"\n background=\"white\"\n boxShadow=\"0px 0px 12px 2px rgba(0, 0, 0, 0.1)\"\n >\n \n \n
\n 미리 조금씩 준비를 하고자 하신다면(10년 후에도 가격보장)\n
\n \n
\n \n \n 매월 9900원으로 준비\n \n [59,400원 할인 프로모션]\n \n
\n \n {\n customEvent({\n newGtm: {\n path: eventPath,\n trigger_and_target: \"pbanner-b3_premium\",\n },\n });\n router.push(\n `/promotion/service/가족장/premium-2025?utm_campaign=goi_rv_b3_premium`\n );\n }}\n css={{ cursor: \"pointer\" }}\n width=\"100%\"\n padding=\"12px 16px\"\n borderRadius=\"4px\"\n background=\"white\"\n boxShadow=\"0px 0px 12px 2px rgba(0, 0, 0, 0.1)\"\n >\n \n \n
\n 최고급 장례 물품, 계약금만 미리 내고 프리미엄 멤버십 가입\n
\n \n
\n \n \n 1만원으로 10%할인 (당해 년도 가격 기준)\n \n \n
\n \n \n \n );\n};\n\nexport default PrepaidBanners;\n","import { CustomerReview } from \"@/components/Reviews/ReviewItems/CustomerReview\";\nimport {\n BoardObjectTable,\n colors,\n customEvent,\n HStack,\n LargeButton,\n LARGEL_BUTTON_TYPE,\n queryKeys,\n Spacing,\n TopBanner,\n VStack,\n} from \"goi_common\";\nimport { css } from \"@emotion/react\";\nimport { SangjoServiceIntroduction } from \"./components/SangjoServiceIntroduction\";\nimport { useMemo } from \"react\";\nimport { Box } from \"@chakra-ui/react\";\nimport { useReviewListInDetailPage } from \"./hooks/useReviewListInDetailPage\";\nimport { ReviewTagChip } from \"./components/ReviewTag/ReviewTagChip\";\nimport dayjs from \"dayjs\";\nimport { StarScore } from \"../MatchContainer/components/MatchRecommendations/StarScore\";\nimport { usePaginationRouter } from \"@/hooks/usePaginationRouter\";\nimport { Review, SangjoReviewTag } from \"@/types/reviewType\";\nimport { SANGJO_REVIEW_TAGS } from \"./constants/reviewTags\";\nimport { getSangjoReviewDetail } from \"@/apis/sangjoReview\";\nimport { useQuery } from \"react-query\";\nimport PrepaidBanners from \"@/components/common/PrepaidBanners\";\n\ninterface Props {\n review: Review;\n}\n\nexport default function FuneralReviewContainer({ review }: Props) {\n const { router, page } = usePaginationRouter();\n const reviewId = String(router.query.id);\n\n const { data } = useQuery(queryKeys.review(reviewId), () =>\n getSangjoReviewDetail(reviewId)\n );\n\n const tags = useMemo(() => {\n if (data?.tags) {\n return data?.tags.filter((t: SangjoReviewTag) =>\n SANGJO_REVIEW_TAGS.includes(t)\n );\n } else {\n return [];\n }\n }, [data]);\n\n const goReviewDetailPage = () => {\n router.push({\n pathname: \"/review/\",\n query: {\n page,\n },\n });\n };\n\n if (!data) {\n return null;\n }\n\n return (\n \n \n\n \n \n \n \n \n {tags.length > 0 && (\n \n 같은 고민을 하신 다른 고객님의 후기도 확인해보세요\n \n )}\n \n {tags.map((tag: string) => (\n \n ))}\n \n {/* */}\n \n {\n customEvent({\n newGtm: {\n path: \"review_detail\",\n trigger_and_target: \"back_to_review_list-uv_review_list\",\n },\n });\n goReviewDetailPage();\n }}\n buttonType={LARGEL_BUTTON_TYPE.ORANGE}\n >\n 후기 목록으로 돌아가기\n \n \n \n \n );\n}\n\nconst TagRecommendReviewList = ({ tag }: { tag: string }) => {\n const { reviews } = useReviewListInDetailPage({\n tag,\n onlyUseThisPageNum: 1,\n });\n\n const items = useMemo(() => {\n if (reviews) {\n if (tag === \"상황\") {\n return [reviews.results[0], reviews.results[1], reviews.results[3]];\n }\n if (tag === \"정책\") {\n return [reviews.results[1], reviews.results[2], reviews.results[4]];\n }\n if (tag === \"장례지도사\") {\n return [reviews.results[0], reviews.results[3], reviews.results[5]];\n }\n if (tag === \"상담\") {\n return [reviews.results[0], reviews.results[2], reviews.results[4]];\n }\n return [reviews.results[0], reviews.results[1], reviews.results[3]];\n } else {\n return [];\n }\n }, [reviews]);\n\n return (\n \n \n \n {tag === \"상황\" && \" 도움을 받으신 고객님들의 후기\"}\n {tag === \"정책\" && \" 에 만족하신 고객님들의 후기\"}\n {tag === \"장례지도사\" && \" 를 경험하신 후기\"}\n {tag === \"상담\" && \" 부터 함께 하신 고객님들의 후기\"}\n \n {reviews && (\n (\n \n {v}\n \n ),\n },\n {\n text: \"작성자\",\n value: \"user\",\n renderCell: (v) => {v.nickname},\n },\n ]}\n expandTableRow={(_, item) => {\n return (\n \n \n \n \n \n {dayjs(item.created_at).format(\"YYYY-MM-DD HH:mm\")}\n \n \n );\n }}\n items={items}\n />\n )}\n \n );\n};\n\nconst titleCss = (width: number) =>\n css({\n display: \"-webkit-box\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"pre-line\",\n overflow: \"hidden\",\n WebkitLineClamp: 2,\n WebkitBoxOrient: \"vertical\",\n });\n","export { default as FuneralReviewContainer } from \"./FuneralReviewContainer\";\n","import { getSangjoReviewDetail } from \"@/apis/sangjoReview\";\nimport { Review } from \"@/types/reviewType\";\nimport { FuneralReviewContainer } from \"containers/ReviewContainer\";\nimport { queryKeys } from \"goi_common\";\nimport { GetServerSideProps } from \"next\";\nimport NotFoundPage from \"pages/404\";\nimport { QueryClient, dehydrate } from \"react-query\";\n\nexport const getServerSideProps: GetServerSideProps = async ({ params }) => {\n const id = Number(params?.id) ?? 0;\n\n const queryClient = new QueryClient();\n await queryClient.prefetchQuery(queryKeys.review(String(id)), () =>\n getSangjoReviewDetail(String(id))\n );\n\n const data = queryClient.getQueryData(queryKeys.review(String(id)));\n\n if (!data) {\n return {\n props: {\n hasError: true,\n },\n };\n }\n\n const address = data.funeral?.parlor.address;\n\n const titlePrefix = address || \"고이\";\n const slicedtitleContents = (data.headline || data.good).slice(0, 10);\n const keywordPrefix = address ? `${address} 장례, ${address} 장례 후기,` : \"\";\n\n const pageOgTitle = `${titlePrefix} 장례 후기, ${slicedtitleContents}... - [장례의 모든 것, 고이장례연구소]`;\n\n const pageDescription = data.good;\n\n const pageKeywords = `${keywordPrefix} 상조 후기, 장례 후기, 가족장 후기, 일반장 후기, 무빈소장례 후기, 장례지도사, 입관식, 꽃장식, 발인, 고이, 고이상조, 고이 후기`;\n\n return {\n props: {\n pageDescription,\n pageKeywords,\n pageOgTitle,\n pageOgDescription: pageDescription,\n review: data,\n dehydratedState: dehydrate(queryClient),\n },\n };\n};\n\ninterface Props {\n review: Review;\n hasError?: boolean;\n}\n\nfunction ReviewId({ review, hasError }: Props) {\n if (hasError) {\n return ;\n }\n\n return ;\n}\n\nexport default ReviewId;\n"],"names":["window","__NEXT_P","push","__webpack_require__","ErrorRoot","styled","FullWidthNextLink","NextLink","FullHeightError","param","children","buttonText","buttonHref","className","emotion_react_jsx_runtime_browser_esm","BX","tZ","Icon","src","alt","width","height","href","LargeButton","buttonType","LARGEL_BUTTON_TYPE","Error","HEADER_HEIGHT","_404","div","br","AverageStarring","star","size","gap","VStack","position","HStack","css","overflow","concat","ColorIcon","name","color","colors","tagList","icon","description","진정성","추가금","RecommendationTagLabe","tagTitle","tag","indexParseSentense","title","index","arr","tagObj","setTagObj","useState","useEffect","background","padding","alignItems","Box","SANGJO_REVIEW_TAGS","SANGJO_REVIEW_DETAIL_TEXT","장례지도사","상담","상황","정책","useReviewPageRouter","router","useRouter","page","query","setReviewPageNum","nextRouter","newPage","toString","getReviewTagPageHref","tagName","ReviewTagChip","colorType","tagQueryParams","colorPalatte","normal","backgroundColor","기본값","highlight","showColor","goiSangjoReviewTags","text","detail","isActived","Chip","borderColor","cursor","onClick","HY","atom","default","key","editingFuneralReviewState","undefined","getSangjoReviewDetail","id","data","Axios","deleteSangjoReview","ReviewEditDropdown","review","queryClient","useQueryClient","setEditingReview","useSetRecoilState","onOpen","onClose","useDialog","setProps","dialogPropsState","resetProps","useResetRecoilState","useCallback","p","deleteCheck","type","header","footerProps","deleteReview","Number","invalidateQueries","replace","onClickEdit","pathname","sangjo","reviewId","Menu","autoSelect","MenuButton","MenuList","border","borderRadius","minWidth","MenuItem","display","justifyContent","MenuDivider","CustomerReview","isClickAvailable","hasLine","tags","filter","t","CircleImage","user","picture","radius","margin","nickname","mt","age_and_gender","dayjs","created_at","format","is_users","asPath","startsWith","customEvent","newGtm","path","trigger_and_target","h1","headline","Flex","maxWidth","flexWrap","map","ReviewContent","content","good","bad","mr","span","parseReviewAverageScore","average_score","score","String","padEnd","Starring","RecommendationTagLabel","process","sincerity","price","additional_charge","HLine","em","dangerouslySetInnerHTML","__html","wordBreak","whiteSpace","SangjoServiceIntroduction","funeral","funeral_director","rowCss","style","h2","titleClassName","h3","quote","flexShrink","getCdnImageSrc","parlor","companyname","address","binso_average_charge","Math","floor","images","url","charge","sangjo_type","crematorium","jangji_site","jangji_type","usePaginationRouter","setPage","getPaginationReviews","params","StarScore","toFixed","PrepaidBanners","eventPath","isMobile","extra","isBiggerThanMd","breakpoint","useResponsive","useMemo","flexDirection","b","textAlign","call","boxShadow","FuneralReviewContainer","useQuery","queryKeys","goReviewDetailPage","TopBanner","Spacing","length","as","TagRecommendReviewList","reviews","useReviewListInDetailPage","count","pageArgument","onlyUseThisPageNum","refetch","isLoading","items","results","BoardObjectTable","isHeaderHidden","boardPath","eventName","keys","value","renderCell","titleCss","v","expandTableRow","_","item","textOverflow","WebkitLineClamp","WebkitBoxOrient","_id_","hasError","NotFoundPage"],"sourceRoot":""}